Optimal. Leaf size=121 \[ \frac{g \tan ^{-1}\left (\frac{e (b+2 c x)}{2 \sqrt{c} \sqrt{d (c d-b e)-b e^2 x-c e^2 x^2}}\right )}{\sqrt{c} e^2}-\frac{2 (e f-d g) \sqrt{d (c d-b e)-b e^2 x-c e^2 x^2}}{e^2 (d+e x) (2 c d-b e)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.155999, antiderivative size = 121, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 44, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.068, Rules used = {792, 621, 204} \[ \frac{g \tan ^{-1}\left (\frac{e (b+2 c x)}{2 \sqrt{c} \sqrt{d (c d-b e)-b e^2 x-c e^2 x^2}}\right )}{\sqrt{c} e^2}-\frac{2 (e f-d g) \sqrt{d (c d-b e)-b e^2 x-c e^2 x^2}}{e^2 (d+e x) (2 c d-b e)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 792
Rule 621
Rule 204
Rubi steps
\begin{align*} \int \frac{f+g x}{(d+e x) \sqrt{c d^2-b d e-b e^2 x-c e^2 x^2}} \, dx &=-\frac{2 (e f-d g) \sqrt{d (c d-b e)-b e^2 x-c e^2 x^2}}{e^2 (2 c d-b e) (d+e x)}+\frac{g \int \frac{1}{\sqrt{c d^2-b d e-b e^2 x-c e^2 x^2}} \, dx}{e}\\ &=-\frac{2 (e f-d g) \sqrt{d (c d-b e)-b e^2 x-c e^2 x^2}}{e^2 (2 c d-b e) (d+e x)}+\frac{(2 g) \operatorname{Subst}\left (\int \frac{1}{-4 c e^2-x^2} \, dx,x,\frac{-b e^2-2 c e^2 x}{\sqrt{c d^2-b d e-b e^2 x-c e^2 x^2}}\right )}{e}\\ &=-\frac{2 (e f-d g) \sqrt{d (c d-b e)-b e^2 x-c e^2 x^2}}{e^2 (2 c d-b e) (d+e x)}+\frac{g \tan ^{-1}\left (\frac{e (b+2 c x)}{2 \sqrt{c} \sqrt{d (c d-b e)-b e^2 x-c e^2 x^2}}\right )}{\sqrt{c} e^2}\\ \end{align*}
Mathematica [A] time = 0.505478, size = 189, normalized size = 1.56 \[ -\frac{2 \left (\sqrt{c} \sqrt{e (2 c d-b e)} (e f-d g) (b e-c d+c e x)+\sqrt{e} g \sqrt{d+e x} (b e-2 c d)^2 \sqrt{\frac{b e-c d+c e x}{b e-2 c d}} \sin ^{-1}\left (\frac{\sqrt{c} \sqrt{e} \sqrt{d+e x}}{\sqrt{e (2 c d-b e)}}\right )\right )}{\sqrt{c} e^2 \sqrt{e (2 c d-b e)} (b e-2 c d) \sqrt{(d+e x) (c (d-e x)-b e)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.009, size = 134, normalized size = 1.1 \begin{align*}{\frac{g}{e}\arctan \left ({\sqrt{c{e}^{2}} \left ( x+{\frac{b}{2\,c}} \right ){\frac{1}{\sqrt{-c{e}^{2}{x}^{2}-b{e}^{2}x-bde+c{d}^{2}}}}} \right ){\frac{1}{\sqrt{c{e}^{2}}}}}-2\,{\frac{-dg+ef}{{e}^{2} \left ( -b{e}^{2}+2\,cde \right ) }\sqrt{- \left ( x+{\frac{d}{e}} \right ) ^{2}c{e}^{2}+ \left ( -b{e}^{2}+2\,cde \right ) \left ( x+{\frac{d}{e}} \right ) } \left ( x+{\frac{d}{e}} \right ) ^{-1}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 4.05437, size = 846, normalized size = 6.99 \begin{align*} \left [-\frac{{\left ({\left (2 \, c d e - b e^{2}\right )} g x +{\left (2 \, c d^{2} - b d e\right )} g\right )} \sqrt{-c} \log \left (8 \, c^{2} e^{2} x^{2} + 8 \, b c e^{2} x - 4 \, c^{2} d^{2} + 4 \, b c d e + b^{2} e^{2} - 4 \, \sqrt{-c e^{2} x^{2} - b e^{2} x + c d^{2} - b d e}{\left (2 \, c e x + b e\right )} \sqrt{-c}\right ) + 4 \, \sqrt{-c e^{2} x^{2} - b e^{2} x + c d^{2} - b d e}{\left (c e f - c d g\right )}}{2 \,{\left (2 \, c^{2} d^{2} e^{2} - b c d e^{3} +{\left (2 \, c^{2} d e^{3} - b c e^{4}\right )} x\right )}}, -\frac{{\left ({\left (2 \, c d e - b e^{2}\right )} g x +{\left (2 \, c d^{2} - b d e\right )} g\right )} \sqrt{c} \arctan \left (\frac{\sqrt{-c e^{2} x^{2} - b e^{2} x + c d^{2} - b d e}{\left (2 \, c e x + b e\right )} \sqrt{c}}{2 \,{\left (c^{2} e^{2} x^{2} + b c e^{2} x - c^{2} d^{2} + b c d e\right )}}\right ) + 2 \, \sqrt{-c e^{2} x^{2} - b e^{2} x + c d^{2} - b d e}{\left (c e f - c d g\right )}}{2 \, c^{2} d^{2} e^{2} - b c d e^{3} +{\left (2 \, c^{2} d e^{3} - b c e^{4}\right )} x}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{f + g x}{\sqrt{- \left (d + e x\right ) \left (b e - c d + c e x\right )} \left (d + e x\right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: TypeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]